<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<a href="springmvc/testRedirect">Test Redirect</a>

	<br><br>
	<hr color="red">
	<a href="springmvc/testView">Test View</a>

	<br><br>
	<a href="springmvc/testViewAndResolver">Test ViewAndResolver</a>

	<br><br>
	<!-- 
		模拟修改操作
		1. 原始数据为: 1,Tom, 123456, tom@atguigu.com, 12
		2. 密码不能修改
		3. 表单回显, 模拟操作直接在表单填写对应的属性值
	 -->
	 <form action="springmvc/testModeAttribute">
	 	<input type="hidden" name="userid" value="1">
	 	username: <input type="text" name="username" value="Tom"><br>
	 	email: <input type="text" name="" value="tom@atguigu.com"><br>
	 	age: <input type="text" name="age" value="12"><br>
	 	<input type="submit" value="Submit">
	 </form>

	<br><br>
	<hr color="red">
	<a href="springmvc/testSessionAttributes">Test SessionAttributes</a>
	
	<br><br>
	<a href="springmvc/testMap">Test Map</a>
	
	<br><br>
	<a href="springmvc/testModelAndView">Test ModelAndView</a>
	
	<br><br>
	<a href="springmvc/testServletAPI">Test ServletAPI</a>
	
	<br><br>
	<hr color="red">
	<form action="springmvc/testPojo" method="post">
		username: <input type="text" name="username">
		<br>
		password: <input type="password" name="password">
		<br>
		email: <input type="text" name="email">
		<br>
		age: <input type="text" name="age">
		<br>
		province: <input type="text" name="address.province">
		<br>
		city: <input type="text" name="address.city">
		<br>
		<input type="submit" value="submit">
	</form>
	
	<br><br>
	<hr color="red">
	<a href="springmvc/testCookieValue">Test CookieValue</a>

	<br><br>
	<a href="springmvc/testRequestHeader">Test RequestHeader</a>

	<br><br>
	<a href="springmvc/testRequestParam?username=atguigu&age=11">Test RequestParam</a>

	<br><br>
	<hr color="red">
	<form action="springmvc/testRest/1" method="post">
		<input type="hidden" name="_method" value="PUT">
		<input type="submit" value="TestRest PUT">
	</form>
	
	<br><br>
	<form action="springmvc/testRest/1" method="post">
		<input type="hidden" name="_method" value="DELETE">
		<input type="submit" value="TestRest DELETE">
	</form>
	
	<br><br>
	<form action="springmvc/testRest" method="post">
		<input type="submit" value="TestRest POST">
	</form>
	
	<br><br>
	<a href="springmvc/testRest/1">TestRest Get</a>

	<br><br>
	<hr color="red">
	<a href="springmvc/testPathVariable/1">TestPathVariable</a>

	<br><br>
	<a href="springmvc/testAntPath/ant/abc">TestAntPAth</a>

	<br><br>
	<a href="springmvc/testParamsAndHeaders">TestParamsAndHeaders</a>

	<br><br>
	<form action="springmvc/testMethod" method="post">
		<input type="submit" value="submit">
	</form>
	
	<br><br>
	<a href="springmvc/testMethod">Test Method</a>
	
	<br><br>
	<a href="helloworld">Hello World</a>
	
</body>
</html>